include ../Makefile.header

LDFLAGS	+= -Ttext 0

all: boot setup

boot: boot.s
	$(AS) -o boot.o $< 
	$(LD) $(LDFLAGS) -o boot boot.o
	objcopy -R .pdr -R .comment -R.note -S -O binary boot


setup: setup.s
	$(AS) -o setup.o setup.s
	$(LD) $(LDFLAGS) -o setup setup.o
	objcopy -R .pdr -R .comment -R.note -S -O binary setup

head.o: head.s
	$(AS) -o head.o head.s

clean:
	rm -f boot boot.o setup setup.o head.o
